home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gtk-2.0 / gtk / gtktoggleaction.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-04-25  |  3.4 KB  |  87 lines

  1. /*
  2.  * GTK - The GIMP Toolkit
  3.  * Copyright (C) 1998, 1999 Red Hat, Inc.
  4.  * All rights reserved.
  5.  *
  6.  * This Library is free software; you can redistribute it and/or
  7.  * modify it under the terms of the GNU Library General Public License as
  8.  * published by the Free Software Foundation; either version 2 of the
  9.  * License, or (at your option) any later version.
  10.  *
  11.  * This Library is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.  * Library General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU Library General Public
  17.  * License along with the Gnome Library; see the file COPYING.LIB.  If not,
  18.  * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19.  * Boston, MA 02111-1307, USA.
  20.  */
  21.  
  22. /*
  23.  * Author: James Henstridge <james@daa.com.au>
  24.  *
  25.  * Modified by the GTK+ Team and others 2003.  See the AUTHORS
  26.  * file for a list of people on the GTK+ Team.  See the ChangeLog
  27.  * files for a list of changes.  These files are distributed with
  28.  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
  29.  */
  30. #ifndef __GTK_TOGGLE_ACTION_H__
  31. #define __GTK_TOGGLE_ACTION_H__
  32.  
  33. #include <gtk/gtkaction.h>
  34.  
  35. G_BEGIN_DECLS
  36.  
  37. #define GTK_TYPE_TOGGLE_ACTION            (gtk_toggle_action_get_type ())
  38. #define GTK_TOGGLE_ACTION(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_ACTION, GtkToggleAction))
  39. #define GTK_TOGGLE_ACTION_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOGGLE_ACTION, GtkToggleActionClass))
  40. #define GTK_IS_TOGGLE_ACTION(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOGGLE_ACTION))
  41. #define GTK_IS_TOGGLE_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOGGLE_ACTION))
  42. #define GTK_TOGGLE_ACTION_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_TOGGLE_ACTION, GtkToggleActionClass))
  43.  
  44. typedef struct _GtkToggleAction        GtkToggleAction;
  45. typedef struct _GtkToggleActionPrivate GtkToggleActionPrivate;
  46. typedef struct _GtkToggleActionClass   GtkToggleActionClass;
  47.  
  48. struct _GtkToggleAction
  49. {
  50.   GtkAction parent;
  51.  
  52.   /*< private >*/
  53.  
  54.   GtkToggleActionPrivate *private_data;
  55. };
  56.  
  57. struct _GtkToggleActionClass
  58. {
  59.   GtkActionClass parent_class;
  60.  
  61.   void (* toggled) (GtkToggleAction *action);
  62.  
  63.   /* Padding for future expansion */
  64.   void (*_gtk_reserved1) (void);
  65.   void (*_gtk_reserved2) (void);
  66.   void (*_gtk_reserved3) (void);
  67.   void (*_gtk_reserved4) (void);
  68. };
  69.  
  70. GType            gtk_toggle_action_get_type          (void) G_GNUC_CONST;
  71. GtkToggleAction *gtk_toggle_action_new               (const gchar     *name,
  72.                                                       const gchar     *label,
  73.                                                       const gchar     *tooltip,
  74.                                                       const gchar     *stock_id);
  75. void             gtk_toggle_action_toggled           (GtkToggleAction *action);
  76. void             gtk_toggle_action_set_active        (GtkToggleAction *action,
  77.                                                       gboolean         is_active);
  78. gboolean         gtk_toggle_action_get_active        (GtkToggleAction *action);
  79. void             gtk_toggle_action_set_draw_as_radio (GtkToggleAction *action,
  80.                                                       gboolean         draw_as_radio);
  81. gboolean         gtk_toggle_action_get_draw_as_radio (GtkToggleAction *action);
  82.  
  83.  
  84. G_END_DECLS
  85.  
  86. #endif  /* __GTK_TOGGLE_ACTION_H__ */
  87.